import request from '@/utils/request'

// 查询供应商类别列表
export function listWoodSupplierCategory(query) {
  return request({
    url: '/woodSupplier/woodSupplierCategory/list',
    method: 'get',
    params: query
  })
}

// 查询供应商类别详细
export function getWoodSupplierCategory(basicsId) {
  return request({
    url: '/woodSupplier/woodSupplierCategory/' + basicsId,
    method: 'get'
  })
}

// 新增供应商类别
export function addWoodSupplierCategory(data) {
  return request({
    url: '/woodSupplier/woodSupplierCategory',
    method: 'post',
    data: data
  })
}

// 修改供应商类别
export function updateWoodSupplierCategory(data) {
  return request({
    url: '/woodSupplier/woodSupplierCategory',
    method: 'put',
    data: data
  })
}

// 删除供应商类别
export function delWoodSupplierCategory(basicsId) {
  return request({
    url: '/woodSupplier/woodSupplierCategory/' + basicsId,
    method: 'delete'
  })
}

// 导出供应商类别
export function exportWoodSupplierCategory(query) {
  return request({
    url: '/woodSupplier/woodSupplierCategory/export',
    method: 'get',
    params: query
  })
}
